import java.util.Arrays;

public class Main {
    public static boolean IsContinuous (int[] numbers) {
        // write code here
        Arrays.sort(numbers);
        int count = 0,len = -1;
        for(int i = 0;i < 5;i++){
            int n = numbers[i];
            if(n == 0)count++;
            else{
                if(len == -1){
                    len = n;
                }else{
                    if(n - len != 1){
                        count--;
                    }
                    len = n;
                }
            }
        }
        return count > 0;
    }

    public static void main(String[] args) {
        int[] a = {6,0,2,0,4};
        System.out.println(IsContinuous(a));
    }
}
